<%@page import="com.project.model.ResumeC"%>
<%@page import="com.project.db.SQLHelper"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
	String id = "";
	String username = "";
	if (request.getParameter("userid") == null) {
		Cookie[] cookie = request.getCookies();
		for (Cookie c : cookie) {
			if (c.getName().equals("userid")) {
				id = c.getValue();
			}
		}
		username = SQLHelper.getName(id);
	} else {
		id = request.getParameter("userid");
		username = "Admin";
	}
	ResumeC c = SQLHelper.getResume(id);
%>
<html lang="zh-cn">
<head>
<meta charset="utf-8" />
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link href="css/app-resume.css" rel="stylesheet">
</head>
<body>
	<nav>
	<div style="width: 100%; height: 5px; background-color: #444;"></div>
	<div class="container">
		<div class="tran">My Resume</div>
		<ul>
			<li><p>
					<%=username%>，你好。 <a href="/personal.jsp" <%=id%>>个人中心</a>
				</p></li>
			<li><a href="http://offerproject.jd-app.com/">退出</a></li>
		</ul>
	</div>
	</nav>
	<div class="container" style="margin-top: 50px;">
		<h3 style="line-height: 35px; font-size: 16px; font-weight: bold;">>预览我的简历/My
			Resume</h3>
		<div class="edit-item">
			<ul>
				<li><span>姓名：</span><input type="text" readonly="readonly"
					name="name" value="<%=c.getName()%>"></li>
				<li><span>年龄：</span><input type="text" readonly="readonly"
					name="age" value="<%=c.getAge()%>"></li>
				<%
					if (c.getSex().equals("man")) {
				%>
				<li><span>性别：</span>男<input type="radio" readonly="readonly"
					checked="checked" name="sex" value="man"> 女<input
					type="radio" readonly="readonly" name="sex" value="woman"></li>

				<%
					} else {
				%>
				<li><span>性别：</span>男<input type="radio" readonly="readonly"
					name="sex" value="man"> 女<input checked="checked"
					type="radio" readonly="readonly" name="sex" value="woman"></li>
				<%
					}
				%>
				<li><span>毕业学校：</span><input type="text" readonly="readonly"
					name="college" value="<%=c.getSchool()%>"></li>
				<li><span>专业：</span><input type="text" readonly="readonly"
					name="subject" value="<%=c.getSubject()%>"></li>
				<li><span>手机号码：</span><input type="text" readonly="readonly"
					name="phone" value="<%=c.getPhone()%>"></li>
				<li><span>邮箱：</span><input type="text" readonly="readonly"
					name="email" value="<%=c.getEmail()%>"></li>
				<li><span style="vertical-align: top;">个人描述：</span> <textarea
						readonly="readonly" style="width: 380px; height: 180px;">暂无个人描述</textarea></li>
			</ul>
		</div>
	</div>
	<script src="js/jquery.min.js"></script>
</body>
</html>